<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>add</title>

    <!-- Fonts -->
    <!-- Styles -->

</head>
<body>
<div class="flex-center position-ref full-height">
    @if($id==2)
        <form action="/user/{{$id}}" method="post">
            <input type="hidden" name="_method" value="put"/>
            <input type="text" name="name" value="{{$data->name}}"></input>
            <input type="text" name="password" value="{{$data->password}}"></input>
            <input type="submit">修改</input>
        </form>
    @elseif($id==3)
        <div>$id : {{$id}} Boolean: {{$id==3}} </div>
    @else
        <div>else</div>
    @endif
</div>
</body>
</html>
